﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
namespace BUS
{
    public class PROVIDERBUS
    {
        public bool Update_Info(PROVIDER prv)
        {
            PROVIDERDAO prodao = new PROVIDERDAO();
            prodao.Update_info(prv);
            return true;
        }
       /* public static ORDER[] Getlist_orderby_provider(int idpvd)
        {
            return PROVIDERDAO.Getlist_orderby_provider(idpvd);
        }*/
        public static List<PROVIDER> Getlist()
        {
            return PROVIDERDAO.Getlist();
        }
        public static void Add(PROVIDER provider)
        {
            PROVIDERDAO.Add(provider);
        }
        public static PROVIDER Get_info(int id)
        {
            return PROVIDERDAO.Get_Info(id);
        }
        public static bool Delete(int idprovider)
        {
            PROVIDERDAO.Delete(idprovider);
            return true;
        }
    }
}
